package com.zxg.zbc.biz.manager;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.zxg.zbc.biz.exception.ManagerException;
import com.zxg.zbc.dal.dataobject.EUserShop;
import com.zxg.zbc.dal.dataobject.User;

import eleme.openapi.sdk.api.entity.user.OUser;

public interface UserManager {
  public static Logger log                     = LoggerFactory.getLogger("manager");

  /**
   * 饿了么授权登录，根据euser 去db里面查询，如果查到对应的user则返回，
   * 如果查不到 则新建1个user
   * TODO 以后需要考虑user 和 euser 解绑问题 暂不考虑 
   * @param ouser
   * @return
   * @throws ManagerException
   */
  public User generateElemeLogin(OUser euser) throws ManagerException;
 
  
  public EUserShop getElemeShopByLocalId(Long id,User user)throws ManagerException;
  
  public EUserShop getDefaultElemeShop(User user)throws ManagerException;
}
